export const getBtnList = (type: string) => {
  const btnlist = <any>{
    '1': [
      {
        name: '更新采购价格',
        type: '111',
        typeChange: '111',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '取消',
        type: '112',
        typeChange: '112',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '回退',
        type: '113',
        typeChange: '113',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '2': [
      {
        name: '更新采购价格',
        type: '211',
        typeChange: '211',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '取消',
        type: '212',
        typeChange: '212',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '回退',
        type: '213',
        typeChange: '213',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '3': [
      {
        name: '更新采购价格',
        type: '311',
        typeChange: '311',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '取消',
        type: '312',
        typeChange: '312',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '回退',
        type: '313',
        typeChange: '313',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '4': [
      {
        name: '更新采购价格',
        type: '411',
        typeChange: '411',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '取消',
        type: '412',
        typeChange: '412',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '回退',
        type: '413',
        typeChange: '413',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
    '5': [
      {
        name: '更新采购价格',
        type: '511',
        typeChange: '511',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '取消',
        type: '512',
        typeChange: '512',
        func: () => {
          return Promise.resolve();
        },
      },
      {
        name: '回退',
        type: '513',
        typeChange: '513',
        func: () => {
          return Promise.resolve();
        },
      },
    ],
  };
  return btnlist[`${type}`];
};

export default null;
